<template>
  <div class="confirm-box" v-show="showComfirm">
    <div class="confirms">
      <slot></slot>
      <!-- <img src="~@/static/images/tubiao_shouquanguanli_active.png" alt />
      <h2>请完善您的个人资料</h2>
      <span>该功能需要您补充完整的个人资料</span>
      <span>请您补充资料后再次进入。</span>-->
      <div class="flex-h botter-btn">
        <b class="flex1" @click="$emit('onCancel')">取消</b>
        <b class="flex1" @click="$emit('onConfirm')">{{confirBtnTxt}}</b>
      </div>
    </div>
  </div>
</template>
 
 <script>
export default {
  props: {
    showComfirm: {
      type: Boolean,
      default: false
    },
    confirBtnTxt: String
  },

  data() {
    return {};
  },
  computed: {},
  mounted: function() {},
  methods: {
    sures() {
      this.$emit("btnClick");
    }
  }
};
</script>
 
 
 <style scoped lang="less">
.confirm-box {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  left: 0;
  top: 0;
  padding: 40% 0.6rem 0;
  box-sizing: border-box;
  z-index: 100000000;
  .confirms {
    width: 100%;
    height: auto;
    overflow: hidden;
    background: #fff;
    border-radius: 0.2rem;
    img,
    h2,
    span,
    b {
      display: block;
    }
    img {
      display: block;
      width: 1.4rem;
      height: 1.4rem;
      margin: 0.2rem auto 0;
    }
    h2 {
      font-size: 0.4rem;
      font-family: "PingFangSC-Semibold", PingFangSC;
      font-weight: 600;
      color: rgba(34, 34, 34, 1);
      margin: 0.1rem auto 0.2rem;
      text-align: center;
    }
    span {
      font-size: 0.3rem;
      font-family: PingFangSC-Regular, PingFangSC;
      font-weight: 400;
      color: rgba(34, 34, 34, 1);
      line-height: 0.5rem;
      text-align: center;
    }
    .botter-btn {
      margin-top: 0.5rem;
      border-top: 0.01rem solid rgba(229, 232, 237, 1);
    }
    b {
      height: 0.9rem;
      text-align: center;
      line-height: 0.9rem;
      font-size: 0.3rem;
      font-family: "PingFangSC-Semibold", PingFangSC;
      font-weight: 600;
      color: rgba(34, 34, 34, 1);
    }
    b:nth-of-type(2) {
      color: @mainColor;
      border-left: 0.01rem solid rgba(229, 232, 237, 1);
    }
  }
}
</style>
 